<template>
  <div class="recoverDig">
    <el-dialog v-model="editDialogVisable" title="详情" width="1000" align-center>
      <basic-table
        :operateOptions="operateOptions"
        :columns="columns"
        :tableOptions="tableOptions"
        :tableEvents="tableEvents"
        :data="tableData"
        :pagination="pagination"
        @loadTableData="loadTableData"
      >
      </basic-table>
      <template #footer>
        <span class="dialog-footer">
          <el-button type="primary" @click="editDialogVisable = false">关闭</el-button>
        </span>
      </template>
    </el-dialog>
  </div>
</template>

<script setup>
import { reactive, ref } from 'vue';

const editDialogVisable = ref(false);

const columns = reactive([
  {
    label: '下发机构列表',
    prop: 'title',
  },
  {
    label: '反馈附件',
    slot: 'type',
  },
  {
    label: '查询状态',
    prop: 'content',
    slot: 'content',
  },
  {
    label: '查询时间',
    prop: 'content',
    slot: 'content',
  },
]);
const tableOptions = {
  emptyText: '暂无数据',
  border: false,
  stripe: true,
};
const pagination = reactive({
  total: null,
  currentPage: 1,
  pageSize: 10,
  pageSizes: [10, 20, 30, 40],
});
const tableData = reactive([
  {
    title: '123',
    type: '123',
    content: '1',
  },
  {
    title: '123',
    type: '123',
    content: '0',
  },
]);
defineExpose({
  editDialogVisable,
});
</script>

<style lang="scss" scoped>
.recoverDig {
  :deep(.el-dialog__header) {
    height: 48px;
    background: #f6f7fb;
    margin-right: 0px;
    padding: 0;
    display: flex;
    align-items: center;
    text-indent: 16px;
    border-bottom: 1px solid #d9dce4;
  }
  :deep(.el-dialog__headerbtn) {
    display: none;
  }
  :deep(.el-dialog__body) {
    padding: 29px 38px;
  }
  :deep(.el-dialog__footer) {
    border-top: none;
    height: 48px;
    padding-top: 0;
    padding-right: 16px;
    .el-button {
      width: 80px;
      height: 32px;
      border-radius: 3px;
      line-height: 32px;
      text-align: center;
      font-size: 14px;
      font-weight: 500;
      background: #2e72ef;
      color: white;
    }
  }
}
</style>
